{# One MCP call's detail, read when its row on Activity is opened (ui_mcp.call_detail): what it sent and got back (its error when it failed), and who made it how. The same sections for every call. #} {% from "components/macros/layout.html" import code_block, facts %} {# One part, highlighted in ``lang`` and capped in height (a response runs long); empty, it says it was not recorded. #} {% macro block(label, text, lang=None) %} {% if text %}
{{ code_block(text, label, lang=lang, wrap=True) }}
{% else %}

{{ label }}

Not recorded

{% endif %} {% endmacro %}
{{ block("Arguments", call.args, call.args_lang) }} {% if call.error %} {{ block("Error", call.error) }} {% else %} {{ block("Response", call.response, call.response_lang) }} {% endif %} {{ facts(call.facts) }}